<html> 
<head>
<meta http-equiv="Content-Type"content="text/html; charset=UTF-8" /> 
<title></title>
</head>
<body>
<?php
	session_start();
	$SociNo = $_SESSION['SociNo'];
	if(isset($SociNo))
	{
		include("../functions/db_conn.php");
		$sql = "SELECT * FROM soci s,department d,  mana m WHERE s.DepartNo=d.DepartNo and s.ManaNo = m.ManaNo and SociNo='".$SociNo."'";
		$Result = mysql_query($sql);
		$row = mysql_fetch_array($Result);
		echo '<h2 align="center">修改社团信息</h2>';
		echo '<form method="post" action="doupdate.php">';
		echo '<input type="hidden" name="SociNo" value="'.$row['SociNo'].'" >';
		echo '<table width="400" border="1" align="center">'; 
		echo '<tr>'; 
		echo '<td align=right>编号:</td>'; 
		echo '<td>'.$row['SociNo'].'</td>'; 
		echo '		</tr>'; 
		echo '<tr>';
		echo '<td align=right>名称:</td>'; 
		echo '<td><input type="text" name="SociName" value="'.$row['SociName'].'" size="24" maxlengt';
		echo '		</tr>'; 
		echo '<tr>'; 
		echo '<td align=right>类别:</td>'; 
		echo '<td><input type="text" name="Kind" value="'.$row['Kind'].'" size="12" maxlength="30"'; 
		echo '	</tr>'; 
		echo '<tr>'; 
		echo '<td align=right>级别:</td>'; 
		echo '<td><input type="text" name="Level" value="'.$row['Level'].'" size="12" maxlength="30"';
		echo '	</tr>'; 
		echo '<tr>'; 
		echo '<td align=right>社长姓名:</td>'; 
		echo '<td>'.$row['ManaName'].'</td>';
		echo '	</tr>'; 
		echo '<tr>';
		echo '<td align=right>需求人数:</td>'; 
		echo '<td><input type="text" name="LimitNum" value="'.$row['LimitNum'].'" size="12" maxlength="30"';
		echo '	</tr>'; 
		echo '<tr>';
		echo '<td align=right>所属院系:</td>'; 
		echo '<td>'.$row['DepartName'].'</td>';
		echo '	</tr>'; 
		echo '<tr>'; 
		echo '	<tr>'; 
		echo '		<td align=right></td>'; 
		echo '		<td>'; 
		echo '			<input type="submit" value="确定" name="ok">'; 
		echo '			<input type="reset" value="重置" name="reset">'; 
		echo '		</td>'; 
		echo '	</tr>'; 
		echo '</table>'; 
		echo '<input type="hidden" name="no" value="'.$_GET["classNo"].'">'; 
		echo '</form>'; 
		// 上传新的社团图片logo
		echo '<form method="post" action="uploadpic.php" enctype="multipart/form-data">';
		echo '<input type="hidden" name="SociNo" value="'.$row['SociNo'].'" >'; 
		echo '<table width="400" border="1" align="center">'; 
		echo '<tr>'; 
		echo '<td align=right>新社团图片</td>'; 
		echo '<td><input type="file" name="face"></td>'; 
		echo '</tr>';
		echo '<tr> <td align=right></td>'; 
		echo '<td><input type="submit" value="上传" name="B1">'; 
		echo '</td></tr>'; 
		echo '</table>'; 
		echo '</form>';
		echo "<center><br /><a href=\"showmymana.php\">取消</a></center>";
}
?>
</body>
</html>